﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PluralSightTut
{
    public abstract class Employee
    {
        public string Name { get; set; }
        public double Salary { get; set; }

        public abstract string AbstractMethodofEmployee();

        public virtual string VirtualMethodofEmployee()
        {
            return "Employee Virtual Method";
        }

        public string MemeberMethodofEmployee(string Name,double Salary)
        {
            if (Name == "Worker1")
                Salary = Salary + 10;
            if (Name == "Manager1")
                Salary = Salary + 20;

            //return "Name : " + Name + " Salary : " + Salary;
            return "Employee Member Method " + Salary;
        }


    }
}
